package com.jic.manager.mapper;

import com.jic.manager.entity.SysNotice;
import com.jic.conf.request.SysNoticeRequest;
import com.jic.manager.response.SysNoticeResponse;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * 公告记录
 * @author : 
 * @email : 
 * @since : 2020-02-26 07:22:01
 * @version : v1.0.0
 */
@Mapper
public interface  SysNoticeMapper {

    long insert(SysNotice sysNotice);

    long delete(Long id);

    long update(SysNotice sysNotice);

    SysNotice queryByPrimaryKey(Long id);

    List<SysNotice> query(SysNotice sysNotice);

    List<SysNotice> queryPage(@Param("startIndex") int startIndex, @Param("limit") int limit, @Param("sysNoticeRequest") SysNoticeRequest sysNoticeRequest);

    long queryPageCount(@Param("sysNoticeRequest") SysNoticeRequest sysNoticeRequest);

    List<SysNoticeResponse>  getTimeSort();

    Integer setaudit(SysNoticeRequest request);

}